#include <REGX52.H>
void DeLay1ms(unsigned int xms )		//@12.000MHz
{
	while(xms)
	 {	
		 unsigned char i, j;
			i = 2;
			j = 239;
			do
	   {
				while (--j);
	   } 	while (--i);
    xms--;
	 }
}

void main()
{
	P2=0xfe;
	DeLay1ms(1000);
	P2=0xfd;
	DeLay1ms(500);
	P2=0xfb;
	DeLay1ms(100);
	P2=0xf7;
	DeLay1ms(50);
	P2=0xef;
	DeLay1ms(50);
	P2=0xdf;
	DeLay1ms(50);
	P2=0xbf;
	DeLay1ms(50);
	P2=0x7f;
	DeLay1ms(50);
	
}
